Cocktail Help Reference
DialogUICommand<T> Constructor(T,Boolean,Boolean)
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > DialogUICommand<T> Class > DialogUICommand<T> Constructor : DialogUICommand<T> Constructor(T,Boolean,Boolean)



dialogResult
The associated dialog result value.
isDefaultCommand
True if command is the default command.
isCancelCommand
True if the command is used to cancel.

Glossary Item Box

Creates a new instance of the DialogUICommand<T> class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal dialogResult As T, _
   Optional ByVal isDefaultCommand As Boolean, _
   Optional ByVal isCancelCommand As Boolean _
)
Visual Basic (Usage)Copy Code
Dim dialogResult As T
Dim isDefaultCommand As Boolean
Dim isCancelCommand As Boolean
 
Dim instance As New DialogUICommand(Of T)(dialogResult, isDefaultCommand, isCancelCommand)
C# 
public DialogUICommand<T>( 
   T dialogResult,
   bool isDefaultCommand,
   bool isCancelCommand
)
C++/CLI 
public:
DialogUICommand<T>( 
   T^ dialogResult,
   bool isDefaultCommand,
   bool isCancelCommand
)

Parameters

dialogResult
The associated dialog result value.
isDefaultCommand
True if command is the default command.
isCancelCommand
True if the command is used to cancel.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.